/* 课表冲突对话框样式 */
.conflictDialog {
  @apply relative;
}

.modalTitle {
  @apply flex items-center gap-2;
}

.titleIcon {
  @apply text-orange-500;
}

.dialogContent {
  @apply space-y-4;
}

.summaryAlert {
  @apply mb-4;
}

.conflictList {
  @apply max-h-64 overflow-y-auto;
}

.conflictItem {
  @apply border-b border-gray-100 last:border-b-0;
}

.conflictContent {
  @apply w-full space-y-2;
}

.conflictHeader {
  @apply flex items-center gap-2;
}

.errorIcon {
  @apply text-red-500;
}

.warningIcon {
  @apply text-orange-500;
}

.conflictType {
  @apply font-medium text-gray-900;
}

.conflictMessage {
  @apply text-gray-700 text-sm;
}

.conflictInstances {
  @apply text-xs text-gray-600 bg-gray-50 p-2 rounded;
}

.instancesLabel {
  @apply font-medium;
}

.instanceInfo {
  @apply text-gray-700;
}

.resolutionSection {
  @apply space-y-3;
}

.resolutionTitle {
  @apply text-base font-medium text-gray-900 m-0;
}

.resolutionOptions {
  @apply w-full;
}

.resolutionOption {
  @apply w-full;
}

.optionContent {
  @apply flex flex-col gap-1;
}

.optionTitle {
  @apply font-medium text-gray-900;
}

.optionDescription {
  @apply text-sm text-gray-600;
}

.modifyForm {
  @apply mt-4 p-4 bg-gray-50 rounded;
}

.form {
  @apply m-0;
}

.formRow {
  @apply flex gap-4;
}

.halfWidth {
  @apply flex-1;
}

/* 列表样式优化 */
.conflictList :global(.ant-list-item) {
  @apply px-0;
}

.conflictList :global(.ant-list-item-content) {
  @apply w-full;
}

/* 单选框样式优化 */
.resolutionOptions :global(.ant-radio-wrapper) {
  @apply w-full p-3 border border-gray-200 rounded hover:border-blue-300 transition-colors duration-200;
}

.resolutionOptions :global(.ant-radio-wrapper-checked) {
  @apply border-blue-500 bg-blue-50;
}

.resolutionOptions :global(.ant-radio) {
  @apply mt-1;
}

/* 表单样式 */
.form :global(.ant-form-item) {
  @apply mb-3;
}

.form :global(.ant-form-item-label) {
  @apply font-medium;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .formRow {
    @apply flex-col gap-0;
  }
  
  .halfWidth {
    @apply w-full;
  }
  
  .conflictInstances {
    @apply text-xs;
  }
  
  .optionTitle {
    @apply text-sm;
  }
  
  .optionDescription {
    @apply text-xs;
  }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
  .conflictDialog :global(.ant-modal-content) {
    @apply bg-gray-800;
  }
  
  .conflictDialog :global(.ant-modal-header) {
    @apply bg-gray-800 border-gray-700;
  }
  
  .conflictDialog :global(.ant-modal-title) {
    @apply text-gray-100;
  }
  
  .conflictItem {
    @apply border-gray-700;
  }
  
  .conflictType {
    @apply text-gray-100;
  }
  
  .conflictMessage {
    @apply text-gray-300;
  }
  
  .conflictInstances {
    @apply bg-gray-700 text-gray-300;
  }
  
  .instanceInfo {
    @apply text-gray-200;
  }
  
  .resolutionTitle {
    @apply text-gray-100;
  }
  
  .optionTitle {
    @apply text-gray-100;
  }
  
  .optionDescription {
    @apply text-gray-400;
  }
  
  .modifyForm {
    @apply bg-gray-700;
  }
  
  .resolutionOptions :global(.ant-radio-wrapper) {
    @apply border-gray-600 hover:border-blue-400;
  }
  
  .resolutionOptions :global(.ant-radio-wrapper-checked) {
    @apply border-blue-400 bg-blue-900;
  }
  
  .form :global(.ant-form-item-label > label) {
    @apply text-gray-200;
  }
  
  .form :global(.ant-input) {
    @apply bg-gray-600 border-gray-500 text-gray-100;
  }
}